#ifndef FORMDEVICEPROFILE_H
#define FORMDEVICEPROFILE_H

#include <QtGui/QWidget>
#include <QCloseEvent>

#include "profile.h"

namespace Ui {
    class FormDeviceProfile;
}

class FormDeviceProfile : public QWidget {
    Q_OBJECT
public:
    FormDeviceProfile(CProfile *pProfile, QWidget *parent = 0);
    ~FormDeviceProfile();

    void SaveData();
    void LoadData();
    void Save2Profile();

protected:
    void changeEvent(QEvent *e);

private:
    CProfile *m_pProfile;
    Ui::FormDeviceProfile *m_ui;
    QString m_strPrevAddDir;

private slots:
    void on_pbDeleteDir_clicked();
    void on_pbAddDir_clicked();
};

#endif // FORMDEVICEPROFILE_H
